<template>
  <ElFormItem prop="format" label="日期格式">
    <ElSelect v-model="elProps.format" style="width: 100%">
      <ElOption label="YYYY-MM-DD" value="YYYY-MM-DD"></ElOption>
      <ElOption label="YYYY-MM-DD HH:mm:ss" value="YYYY-MM-DD HH:mm:ss"></ElOption>
      <ElOption label="YYYY-MM" value="YYYY-MM"></ElOption>
      <ElOption label="YYYY" value="YYYY"></ElOption>
    </ElSelect>
  </ElFormItem>
</template>
<script setup lang="ts" name="DateFormatEditor">
import { ElFormItem, ElSelect, ElOption } from "element-plus";
defineProps({
  elProps: {
    type: Object
  }
});
</script>
